package com.bdqn.day0105.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @Author:Corday
 * @Date:2022/01/05/14:17
 */
@Controller
public class ThymeleafController {

    @RequestMapping("/")// http://localhost:8090/
    public  String go(){
        return "page/index";
    }

    @RequestMapping("/play") // http://localhost:8090/play
    public  String play(Map map){
        map.put("name","小美");
        return "page/view";
    }
}
